package me.sauce.dntest.data;

import java.util.List;

/**
 * Created by sauce on 2016/12/26.
 * Version 1.0.0
 */

public interface IDaoHelper<T> {
    Long addData(T t);

    void deleteData(Long id);


    T getDataById(Long id);

    List<T> getAllData();

    boolean hasKey(Long id);

    long getTotalCount();

    void deleteAll();
}
